package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchBankAccountServiceApi;
import com.thb.pay.api.merchant.vo.req.MchBankAccountPageReq;
import com.thb.pay.api.merchant.vo.req.MchBankAccountReq;
import com.thb.pay.api.merchant.vo.resp.MchBankAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchBankAccountServiceApiFallbackFactory implements FallbackFactory<MchBankAccountServiceApi> {


    @Override
    public MchBankAccountServiceApi create(Throwable throwable) {
        return new MchBankAccountServiceApi() {
            @Override
            public PageResult<MchBankAccountVo> findPage(MchBankAccountPageReq pageReq) {
                return null;
            }

            @Override
            public List<MchBankAccountVo> findAllList() {
                return null;
            }

            @Override
            public List<MchBankAccountVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public MchBankAccountVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchBankAccountReq mchBankAccountReq) {

            }

            @Override
            public void update(MchBankAccountReq mchBankAccountReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}